<?php use_helper('Form')?>
<ul class="sf_admin_actions">
<?php if ($form->isNew()): ?>
  <?php echo $helper->linkToList(array(  'label' => 'Volver a la lista',  'params' =>   array(  ),  'class_suffix' => 'list',)) ?>
  <?php echo $helper->linkToSave($form->getObject(), array(  'label' => 'Iniciar',  'params' =>   array(  ),  'class_suffix' => 'save',)) ?>
<?php else: ?>
  <?php echo $helper->linkToList(array(  'label' => 'Volver a la lista',  'params' =>   array(  ),  'class_suffix' => 'list',)) ?>
  <li class="sf_admin_action_imprimir">
<?php if (method_exists($helper, 'linkToImprimir')): ?>
  <?php echo $helper->linkToImprimir($form->getObject(), array(  'label' => 'Imprimir',  'params' =>   array(  ),  'class_suffix' => 'imprimir',)) ?>
<?php else: ?>
  <?php echo link_to(__('Imprimir', array(), 'messages'), 'facturas/ListImprimir?id='.$facturas->getId(), array()) ?>
<?php endif; ?>
  </li>
  <!--<li class="sf_admin_action_pago">
<?php if (method_exists($helper, 'linkToPago')): ?>
  <?php echo $helper->linkToPago($form->getObject(), array(  'label' => 'Procesar Pago',  'params' =>   array(  ),  'class_suffix' => 'pago',)) ?>
<?php else: ?>
  <?php echo link_to(__('Procesar Pago', array(), 'messages'), 'facturas/ListPago?id='.$facturas->getId(), array()) ?>
<?php endif; ?>
  <?php echo $helper->linkToDelete($form->getObject(), array(  'label' => 'Borrar',  'params' =>   array(  ),  'confirm' => 'Are you sure?',  'class_suffix' => 'delete',)) ?>
  </li> -->
  <?php echo submit_tag('Pago Contado','name=pago_contado')?>
  <?php echo submit_tag('Pago Crédito','name=pago_credito')?>
  <?php if ($sf_user->HasCredential('admin')):?>
        <?php echo submit_tag('Anular',array( 'confirm' => '¿Estás seguro?' , 'absolute' => true, 'name'=> 'anular', ))?>
  <?php endif?>
  <?php endif; ?>
</ul>
